/************************************************
   javascript que muestra u oculta contenido
************************************************/

function justfold(elementId, fold) {
  var elementToFold = document.getElementById(elementId);
  if (navigator.userAgent.indexOf("Netscape6") != -1) {
    if (fold=="0") {
      elementToFold.style.visibility="hidden";
    } else {
      elementToFold.style.visibility="visible";
    }
  } else {
    if (fold=='0') {
      elementToFold.style.display="none";
    } else {
      elementToFold.style.display="";
    }
  }
}

function justfold1(elementId, fold) {
  var elementToFold = document.getElementById(elementId);
  if (fold=="0") {
    elementToFold.style.visibility="hidden";
    elementToFold.style.display="none";
  } else {
    elementToFold.style.visibility="visible";
    elementToFold.style.display="";
  }
}

function fold(elementId) {
	var elementToFold = document.getElementById(elementId);
	if ( elementToFold.style.visibility == "hidden" || elementToFold.style.display == "none" ) {
		justfold1(elementId, 1);
		var out=true;
	} else {
		justfold1(elementId, 0);
		var out=false;
	}
	return out;
}
